module.exports = class extends think.Model {
  async get() {
    let alias = this.model().where('node,is_menu,is_auth,is_login,title').select();
    const ignore = ['index', 'wechat/api', 'wechat/notify', 'wechat/review', 'admin/plugs', 'admin/login', 'admin/index'];
    for (const thr of object) {
      for (const str of ignore) {
        if (thr.indexof(str) < 0) {
          continue;
        }
        let tmp = thr.split('/');
        let [one, two] = [tmp[0], '']
        alias.one ? alias.one : { 'node': one, 'title': '', 'is_menu': 0, 'is_auth': 0, 'is_login': 0 };
        alias.two ? alias.two : { 'node': two, 'title': '', 'is_menu': 0, 'is_auth': 0, 'is_login': 0 };
        alias.thr ? alias.two : { 'node': thr, 'title': '', 'is_menu': 0, 'is_auth': 0, 'is_login': 0 };
        // nodes.one = 
      }
    }
  }

  async getNodeTree(path, nodes = []) {

  }

  // async _getFilePaths(path, data=[], ext='js') {
  //   for()
  // }
};
